﻿using Common.Communal;
using ERP.Domain.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Services.Organizes
{
    /// <summary>
    /// 组织机构服务接口
    /// </summary>
    public interface IOrganizeService
    {
        /// <summary>
        /// 添加组织
        /// </summary>
        /// <param name="organize">实体</param>
        /// <returns>返回任务</returns>
        Task<ApiResult<int>> Add(Organize organize);

        /// <summary>
        /// 更新组织
        /// </summary>
        /// <param name="organize">组织实体</param>
        /// <returns>操作结果</returns>
        Task<ApiResult<int>> Update(Organize organize);
        /// <summary>
        /// 删除组织
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns>返回结果</returns>
        Task<ApiResult<int>> Delete(int id);
    }
}
